package com.gtt.jr.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gtt.jr.repository.ContainerTypeBridgeDao;
import com.gtt.jr.repository.domain.ContainerTypeBridge;

/**
 * Container Type Bridge Service Impl
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2011-3-2
 * 
 */
@Service
public class ContainerTypeBridgeServiceImpl implements
		ContainerTypeBridgeService {

	@Resource
	private ContainerTypeBridgeDao containerTypeBridgeDao;

	public void save(ContainerTypeBridge bridge) {
		containerTypeBridgeDao.save(bridge);
	}

	@Override
	public ContainerTypeBridge get(Long containerId) {
		return containerTypeBridgeDao.load("container.id", containerId);
	}

}
